#ifndef _COMMON_H
#define _COMMON_H




#define USE_DEBUG	1






#define STC11L02E	  0
#define STC12LE5410AD 1


#define MCU_TYPE  STC11L02E
//#define MCU_TYPE  STC12LE5410AD






#define GPIO_MODE_BIDIR			0
#define GPIO_MODE_OUTPUT		1
#define GPIO_MODE_INPUT 		2
#define GPIO_MODE_OPENDRAIN  	3
					
					


typedef char INT8;
typedef unsigned char INT8U;
typedef char CHAR;
typedef int  INT16;
typedef unsigned int  INT16U;
typedef long INT32;
typedef unsigned long INT32U;






#if (USE_DEBUG == 1)
extern void putStr(char * str);
extern void putStrHex(const char * str, INT16U value);
extern void putStrDec(const char * str, INT16U value);

#define print_str(str)	putStr(str)
#define print_strhex(str, val)	putStrHex(str, val)
#define print_strdec(str, val)	putStrDec(str, val)

#else

#define print_str(str)	
#define print_strhex(str, val)	
#define print_strdec(str, val)

#endif



extern void GPIO_mode_setting(INT8U GPIO,
					   INT8U bitPos,
					   INT8U mode);

#endif
